package com.cms.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 站点表
 * </p>
 *
 * @author 作者
 * @since 2022-03-06
 */
@Data
public class BaseSite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建日期
     */
    private LocalDateTime createDate;

    /**
     * 修改日期
     */
    private LocalDateTime updateDate;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 协议
     */
    private String protocol;

    /**
     * PC端模板
     */
    private String pcTemplate;

    /**
     * 是否有手机端
     */
    private Boolean isMobile;

    /**
     * 手机端端模板
     */
    private String mobileTemplate;

    /**
     * 是否默认
     */
    private Boolean isDefault;

    /**
     * 名称
     */
    private String name;

    /**
     * URL目录
     */
    private String cat;

    /**
     * 域名
     */
    private String domain;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }
    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }
    public String getPcTemplate() {
        return pcTemplate;
    }

    public void setPcTemplate(String pcTemplate) {
        this.pcTemplate = pcTemplate;
    }
    public Boolean getIsMobile() {
        return isMobile;
    }

    public void setIsMobile(Boolean isMobile) {
        this.isMobile = isMobile;
    }
    public String getMobileTemplate() {
        return mobileTemplate;
    }

    public void setMobileTemplate(String mobileTemplate) {
        this.mobileTemplate = mobileTemplate;
    }
    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getCat() {
        return cat;
    }

    public void setCat(String cat) {
        this.cat = cat;
    }
    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    @Override
    public String toString() {
        return "Site{" +
            "id=" + id +
            ", createDate=" + createDate +
            ", updateDate=" + updateDate +
            ", type=" + type +
            ", protocol=" + protocol +
            ", pcTemplate=" + pcTemplate +
            ", isMobile=" + isMobile +
            ", mobileTemplate=" + mobileTemplate +
            ", isDefault=" + isDefault +
            ", name=" + name +
            ", cat=" + cat +
            ", domain=" + domain +
        "}";
    }
}
